<?php
/**
 * rankPush.php 排行提示推送 每天22:00推送
 *
 * @author 周剑锋 <camfee@foxmail.com>
 * @date   17-9-6 上午10:16
 *
 */

require_once dirname(__DIR__) . "/cronBase.php";

use Mobile\AppPush;

class rankPush extends cronBase
{
    const DATA_LIMIT = 200;

    public function doDefault()
    {
        self::_sendPush(); // 排行推送
    }

    private static function _sendPush()
    {
        $msg1 = '看看你今天的身体评分，打败了多少美女。';
        AppPush::pushTag(AppPush::TAG_FEMALE, AppPush::PUSH_TYPE_MSG, $msg1);
        $msg2 = '看看你今天的身体评分，打败了多少帅哥。';
        AppPush::pushTag(AppPush::TAG_MALE, AppPush::PUSH_TYPE_MSG, $msg2);
    }
}

$app->run();